import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询设施类型全部
export const alarmFacilityTypeList = data => {
    return $get('/alarm/alarmFacilityType/list', data)
}

// 查询设施类型列表
export const alarmFacilityTypePage = data => {
    return $get('/alarm/alarmFacilityType/page', data)
}

// 新增设施类型
export const alarmFacilityTypeAdd = data => {
    return $post('/alarm/alarmFacilityType/add', data)
}

// 查询设施类型详情
export const alarmFacilityTypeDetail = id => {
    return $get('/alarm/alarmFacilityType/detail/'+ id)
}

// 更新设施类型
export const alarmFacilityTypeUpdate = data => {
    return $post('/alarm/alarmFacilityType/update', data)
}

// 删除设施类型
export const alarmFacilityTypeDelete = id => {
    return $post('/alarm/alarmFacilityType/delete/'+ id)
}

// 导出设施类型
export const alarmFacilityTypeExport = (data,fileName) => {
    return $download('/alarm/alarmFacilityType/export',data, fileName)
}
